import { post, get } from '@/utils/axios'

const prefixUrl = '/sys/user/'

/** 添加用戶 */
export const addUser = (data) => {
  return post(`${prefixUrl}addUser`, data)
}

/** 查询用户 */
export const findUserById = (userId) => {
  return get(`${prefixUrl}getById`, { userId })
}

/** 修改密码 */
export const rePwd = (form) => {
  return post(`${prefixUrl}rePwd`, form)
}
